package com.aorise.mapper.camera;

import com.aorise.model.camera.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
* @Author:cat
* @Description 视频设备分组mybatis接口类
* @Date:Created in 2019-06-14
* @Modified By:
*/
@Mapper
@Component(value = "cameraGroupMapper")
public interface CameraGroupMapper {

    /**
     * @Author:cat
     * @Description 根据父级ID查询视频设备分组信息
     * @params: map 查询条件Map
     * @Date:2019-05-23
     * @Return: List<CameraGroupModel> 视频设备分组集合
     * @Modified By:
     */
    List<CameraGroupModel> getCameraGroupByParentId(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 根据ID查询视频设备分组信息
     * @params: map 查询条件Map
     * @Date:2019-06-14
     * @Return: CameraGroupModel 视频设备分组
     * @Modified By:
     */
    CameraGroupModel getCameraGroupById(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 根据分组名称查询视频设备分组信息
     * @params: map 查询条件Map
     * @Date:2019-06-14
     * @Return: CameraGroupModel 视频设备分组
     * @Modified By:
     */
    CameraGroupModel getCameraGroupByName(Map<String, Object> map) throws DataAccessException;

}